package com.security.spring.web.rs;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;

/**
 * @author Administrator
 */
public class TokenMessageDTO implements Serializable {
    private static final long serialVersionUID = -7087072793680199652L;

    @JsonProperty("access_token")
    private String accessToken;

    @JsonProperty("expire_in")
    private Long expireIn;

    @JsonProperty("token_type")
    private String tokenType;

    public TokenMessageDTO() {
    }

    @Override
    public String toString() {
        return "TokenMessageDTO{" +
                "accessToken='" + accessToken + '\'' +
                ", expireIn=" + expireIn +
                ", tokenType='" + tokenType + '\'' +
                '}';
    }

    public TokenMessageDTO(String accessToken, Long expireIn, String tokenType) {
        this.accessToken = accessToken;
        this.expireIn = expireIn;
        this.tokenType = tokenType;
    }


    public TokenMessageDTO(String accessToken) {
        this.accessToken = accessToken;
    }

    public TokenMessageDTO(Long expireIn) {
        this.expireIn = expireIn;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public Long getExpireIn() {
        return expireIn;
    }

    public void setExpireIn(Long expireIn) {
        this.expireIn = expireIn;
    }

    public String getTokenType() {
        return tokenType;
    }

    public void setTokenType(String tokenType) {
        this.tokenType = tokenType;
    }
}
